<%@ page contentType="text/html; charset=UTF-8" errorPage="/base/jsp/common/CommonError.jsp"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="h" uri="/bdp-html" %>
<%@taglib prefix="bdp" uri="/bdp-base" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/base/jsp/common/CommonListTop.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>系统管理-系统日志</title>
<link href="${ctx}/base/css/base.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/base/css/common.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/base/css/${customTheme}.css" rel="stylesheet" type="text/css" />

<link href="${ctx}/base/calendar/calendar-blue.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${ctx}/base/calendar/calendar.js"></script>
<script type="text/javascript" src="${ctx}/base/calendar/lang/calendar-zh.js"></script>
<script type="text/javascript" src="${ctx}/base/calendar/calendar-setup.js"></script>

<script src="${ctx}/base/js/jquery/jquery.js" type="text/javascript"></script>
<script src="${ctx}/base/js/base.js" type="text/javascript"></script>
<script src="${ctx}/base/js/common/FormFunction.js" type="text/javascript"></script><!-- 公用的按钮函数 -->
</head>
<body class="rightBody">
<form name="searchForm" method="get" action="">
<table width="100%" class="title" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th><img src="${ctx}/base/images/public/titleicon.gif" width="16" height="16" alt="图标 " class="icon" />系统管理-系统日志查询</th>
    <th width="120"><!-- a href="defaultEvent('titleControl')" class="titletooffbtn" title="收起">收起搜索</a --></th>
  </tr>
  <tr>
	<td><span class="fl lh200">操作人账号：</span><s:textfield name="searchValue['personAccount']" cssClass="fl input"/>
	  <span class="fl ml10 lh200">操作结果：</span><s:select name="searchValue['result']" list="#{1:'成功',0:'失败'}" headerValue="-请选择-" headerKey="" cssClass="select fl"/>
	  <span class="fl ml10 lh200">时间：</span><s:textfield name="searchValue['searchStartTime']" id="searchStartTime" cssClass="fl input" readonly="true"/><span class="fl ml5 mr5 lh200">--</span><s:textfield name="searchValue['searchEndTime']" id="searchEndTime" cssClass="fl input" readonly="true"/>
	  <script type="text/javascript">
			Calendar.setup({inputField: "searchStartTime",ifFormat: "%Y-%m-%d"});
			Calendar.setup({inputField: "searchEndTime",ifFormat : "%Y-%m-%d"});
		</script>
	  <input type="button" value="搜索" class="btnSo ml5" onclick="FormFunction.defaultEvent('search')"/>
      <input name="" type="reset" value="重置" class="btn2" />
	</td>
    <td align="right"></td>
  </tr>
</table>
<!--搜索 end-->
<h:table>
	<h:column  headerTitle="<input type='checkbox' name='slectAll' value='checkbox' onclick='selectAll(this.checked);' disabled>" align="center" width="32">
		<input type="checkbox" name="selectedRow" value="<s:property value="id"/>" disabled>
	</h:column>
	<h:column headerTitle="操作账号" width="90" align="center"><s:property value="personAccount"/></h:column>
	<h:column headerTitle="操作人" width="80" align="center"><s:property value="personName"/></h:column>
	<h:column headerTitle="功能" align="center"><s:iterator value="#application.APP_DATA_MODULE_MAP" var="st"><s:if test="%{moduleCode == #st.key}"><s:property value="#st.value" /></s:if></s:iterator></h:column>
	<h:column headerTitle="操作类型" width="60" align="center">
	    <!-- 系统通用操作 -->
	    <s:if test="%{operateType=='login'}">登录</s:if>
	    <s:if test="%{operateType=='logout'}">退出</s:if>
	    <s:if test="%{operateType=='add'}">新增</s:if>
	    <s:if test="%{operateType=='edit'}">修改</s:if>
	    <s:if test="%{operateType=='del'}">删除</s:if>
	    <s:if test="%{operateType=='view'}">查看</s:if>
	    <s:if test="%{operateType=='import'}">导入</s:if>
	    <s:if test="%{operateType=='export'}">导出</s:if>
	    <s:if test="%{operateType=='submitAudit'}">提交审核</s:if>
	    <s:if test="%{operateType=='audit'}">审核</s:if>
	    
	    <!-- 业务系统自定义操作 -->
	</h:column>
	<h:column headerTitle="操作IP" property="clientIp" width="100"><s:property value="clientIp"/></h:column>
	<h:column headerTitle="操作时间" width="120" align="center">
		<s:date name="operateTime" format="yyyy-MM-dd HH:mm"/>
	</h:column>
	<h:column headerTitle="操作结果" width="60" align="center">
	    <s:if test="%{result==0}">失败</s:if><s:if test="%{result==1}">成功</s:if>
	</h:column>
	<h:column headerTitle="操作描述"><s:property value="operateDesc"/></h:column>
</h:table>
<!--列表 end-->
<table width="100%" class="pageDown" border="0" cellspacing="0" cellpadding="0">
  <tr><td align="right"><h:pager/>&nbsp;</td></tr>
</table>
</form>
<script>
	var listUrl = "${ctx}/sys/logger!listSysLog.action";//表单列表list 的url地址,用来作为搜索地址
</script>
<%@ include file="/base/jsp/common/CommonListFoot.jsp"%>
</body>
</html>